package org.springblade.modules.repair.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.modules.repair.entity.MaintainMalfunctionHistory;

import java.util.List;

/**
 * @author zcc
 * @version 1.0
 * @date 2021/5/31 11:16
 */
@ApiModel("维修记录model")
@Data
public class WorkDetailHistoryVo {

	@ApiModelProperty("组id")
	private Long groupId;

	private List<MaintainMalfunctionHistory> list;

	@ApiModelProperty("状态1：设备检修 2：部件更换")
	private Integer status;


	public void setList(List<MaintainMalfunctionHistory> list) {
		this.list = list;
		this.status = list.get(0).getStatus();
	}
}
